#ifndef SHELLUTIL_HPP
#define SHELLUTIL_HPP

string expandPrompt(string cmd, ShellState *state);

void closeAllExceptStd();
void setCloseOnExec(int fd, bool closeOnExec);
void setFileAsync(int fd, bool async);
void makeTermRaw(int fd);

#ifdef __CYGWIN__
int posix_openpt(int oflag);
#endif

#endif
